package com.demo.model;

import org.springframework.stereotype.Component;

/**
 * @Description 测试spring定时任务
 * @Author Dang Xianyue
 * @Date 2020-08-17 11:37
 * @Version 1.0
 */
@Component
public class TestSchedulerJob {

        //才接xml配置时注释掉
//    @Scheduled(cron = "0/3 * * * * ?")
    public void run(){
        System.out.println("测试spring定时任务");
    }
}
